ff () {
    vterm_cmd find-file-other-window "$(realpath "${@:-.}")"
}

# Set the vterm buffer name format as "HOSTNAME:PWD"
# This need set vterm-buffer-name-string at Emacs
autoload -U add-zsh-hook
add-zsh-hook -Uz chpwd (){ print -Pn "\e]2;%m:%2~\a" }
print -Pn "\e]2;%m:%2~\a"
